const bluebird = require("bluebird");
const logger = require('./logInit.js').createLogger("cache");
const redis = require('redis'),
    client = redis.createClient(require(`../config/redis-${process.env.NODE_ENV}.json`));
    client.on("error", function (err) {
        logger.log('error',"Redis-Error " + err);
    });
bluebird.promisifyAll(redis);

module.exports = client;